#pragma once
#include "ldap_result.h"


class Modify_Result :
	public LDAP_Result
{
	//++alte flaguri particulare pe care le are doar operatia de modificare a
	// unei intrari, a unor atribute

	char *DN_Modificata;
	vector<Atribut<char*>> atribute_modificate;
	vector<Atribut<char*>> atribute_negasite;
public:
	class Modify_Result_Exception
	{
		char *msg;
		int cod;
	public:
		Modify_Result_Exception(char *m,int c)
		{
			msg=new char[strlen(m)+1];
			if(msg==0)
				throw new exception();
			strcpy(msg,m);
			cod=c;
		}

		char *getMsg()const
		{
			return msg;
		}

		int getCode()const
		{
			return cod;
		}

		~Modify_Result_Exception()
		{
			delete[] msg;
		}
	};

	Modify_Result(char *ras,bool s,char *dn,vector<Atribut<char*>> atrib_mod,vector<Atribut<char*>> atrib_negasite);

	~Modify_Result(void);

	void afisareResult()const;

	vector<Atribut<char*>> Da_atribute_modificate()const;

	vector<Atribut<char*>> Da_atribute_negasite()const;
};


